home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19981211-19990422
/
000319_news@watsun.cc.columbia.edu _Fri Mar 5 16:34:24 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@watsun.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA20123
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 5 Mar 1999 16:34:23 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id QAA00022
for kermit.misc@watsun.cc.columbia.edu; Fri, 5 Mar 1999 16:19:09 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Subject: Re: running kermit from command line question
Date: 5 Mar 1999 21:19:07 GMT
Organization: Columbia University
Message-ID: <7bphob$j$1@newsmaster.cc.columbia.edu>
To: kermit.misc@mailrelay2.cc.columbia.edu
In article <7bpgto$c6n$1@nnrp1.dejanews.com>, <nmr103@my-dejanews.com> wrote:
: We're using the following command to suck data off of a surface
: meteorological sensor we have installed on /dev/term/b, and we have kermit..
:
Which version?
: ...installed on solaris x86:
:
: kermit -l /dev/term/b -C "output \13avg\13, connect /quietly" > output.file
:
: This is working *great*, with one exception... the process is hanging.
:
Because you didn't specify an completion criterion. So it just goes into
CONNECT mode and stays there forever.
: We
: feel like we should send some sort of break sequence after the \13avg\13
: command we're sending to our device, but we've tried all sorts of
: permutations and combinations of \28, \c, \b, \B, and so forth. We've tried
: writing little wrapper scripts that kill the kermit process, but they don't
: work, and were serious kluges to begin with.
:
: Does anyone know how we can tack on a break sequence to the output command
: we're sending to our device, or otherwise, a switch to the command line
: command that tells kermit to disconnect and quit after about 5 seconds?
:
The real way to do this is to write a script (see Chapters 17-19 of the
manual) that does what you would do if you collected this data by hand,
substituting OUTPUT, INPUT, and IF FAIL commands for the CONNECT command and
your eyes, fingers, and brain. If you know when it should terminate, you
can make the script terminate under the same conditions. If there is no
clear "end of data" pattern from the device, you can make it terminate after
a given amount of time, e.g.:
set line /dev/term/b
if fail <do something>
set speed <whatever
set carrier-watch off
log session <filename>
output \13avg\13
input 60 xxxx
exit
In this example we just soak up whatever comes in for 60 seconds (assuming
"xxx" will never come) and then exit. The data is in the session log.
- Frank